package com.example.boot3.service.Impl;


import com.example.boot3.mapper.InsuranceMapper;
import com.example.boot3.model.Insurance;
import com.example.boot3.model.Repair;
import com.example.boot3.service.InsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InsuranceServiceImpl implements InsuranceService {
    @Autowired
    private  InsuranceMapper insuranceMapper;
    @Override
    public List<Insurance> getInsuranceList() {
        return insuranceMapper.getInsuranceList();
    }

    @Override
    public Integer registerInsurance(Insurance insurance) {

        return insuranceMapper.registerInsurance(insurance);
    }
}


